<div class="content"><!-- content -->
    <div class="textContent">
         <div class="empty_abowtextContent"></div>
         <div class="above_textContent">
            <p><span class="long_em_dash">&mdash;</span>&nbsp;<?php echo get_the_title(); ?></p> <!-- &#8212; -->
         </div>
         <div class="below_textContent">
            <?php the_content(); ?>
        </div>
    </div>
    <div class="videoContent">
    <?php
	$meta = get_post_meta($post->ID,'_media_meta',TRUE);
    ?>
    <ul id="slider">
        <?php
            if(!empty($meta['media_meta_data1'])) {
                $custom_media_arr1 = $meta['media_meta_data1'];
                $num_tmp = 1;
                foreach($custom_media_arr1 as $custom_media_code1) {
            	   if($custom_media_code1["mediatype"]=='image'&&$custom_media_code1["link"]!=''){
            	       echo '<li><img src="'.stripslashes($custom_media_code1["link"]).'" alt="images" width="810" height="590"/></li>';
        	           }else if($custom_media_code1["mediatype"]=='video'&&$custom_media_code1["link"]!=''){
    	             //  echo '<li class="panel3"><iframe width="840" height="530" src="'.stripslashes($custom_media_code1["link"]).'?version=3&modestbranding=0&fs=1&HD=1&rel=0&showinfo=0&showsearch=0&egm=0&iv_load_policy=3&autohide=1" frameborder="0" allowfullscreen></iframe></li>';
                     echo '<li><div id="mediaplayer_'.$num_tmp.'"></div>';
                     echo '</li>';
  	               }
                    $num_tmp++;
                }
            }else{
                echo '<li><img src="'.get_bloginfo('template_url').'/images/ref_video_img/video_img1.jpg" alt="images" width="810" height="590"/></li>';
                echo '<li><img src="'.get_bloginfo('template_url').'/images/ref_video_img/video_img1.jpg" alt="images" width="810" height="590"/></li>';
        } 
        ?>
    </ul>

<?php
if(!empty($meta['media_meta_data1'])) {
    $custom_media_arr1 = $meta['media_meta_data1'];
    $num_tmp = 1;
    ?>
    <script type="text/javascript">
  	 $(document).ready(function(){
    <?php
	foreach($custom_media_arr1 as $custom_media_code1) {
	   if($custom_media_code1["mediatype"]=='video'&&$custom_media_code1["link"]!=''){
	       ?>
	   loadMovie('mediaplayer_<?php echo $num_tmp;?>','<?php echo stripslashes($custom_media_code1["link"]);?>');
	       <?php
       }
       $num_tmp++;
    }
    ?>
     });
   	</script>
    <?php
                
 }
?>
    <?php
            if(!empty($meta['media_meta_data1'])) {
                $custom_media_arr1 = $meta['media_meta_data1'];
                $num_tmp = 1;
            	foreach($custom_media_arr1 as $custom_media_code1) {
            	   if($custom_media_code1["link"]!=''){
            	       $num_tmp++;
        	       }
    			}
                echo '<style type="text/css"> div.anythingSlider-minimalist-round .anythingControls { right: '.(46-(0.5*$num_tmp)).'%; } </style>';
            }else{
                echo '<style type="text/css"> div.anythingSlider-minimalist-round .anythingControls { right: 45%; } </style>';
            } 
        ?>
    </div>   
</div>	<!-- end content-->